package org.feidao.chapter72;
;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Chapter72Application {

    public static void main(String[] args) {
        SpringApplication.run(Chapter72Application.class, args);
        startClient();
    }

    public static void startClient() {
        System.out.println("start client....");

        UserServiceManager userServiceManager = new UserServiceManager();

        System.out.println("test Communication....");
        userServiceManager.testCommunication();
        System.out.println("get thrift service....");
        userServiceManager.getService();
    }
}
